<?php
class Role extends AppModel {

  public $name = 'Role';
  var $primaryKey = 'role_name';
  public $hasAndBelongsToMany = array(
      'User'=> array(
          'className'=>'User',
          'joinTable'=>'user_roles',
          'foreign_key'=>'role_name',
          'associationForeignKey'=>'user_id',
          'unique'=>true
      )
  );

}

?>
